<?php

declare(strict_types=1);

namespace App\Model\PssModel;

use App\Model\BaseModel\BasePssModel;
use Hyperf\DbConnection\Db;
class ShopTopicsConfiginfo extends BasePssModel
{
    public $table = 'shop_topics_configinfo';

    /**
     * 获取指定专题馆集合详情
     * @param array $types
     */
    public function getTopicListInfoByTopicIds( array $topicIds = [] )
    {
        return $this->whereIn('topic_id',$topicIds)
        ->select([
            Db::raw("CONCAT('',topic_id) as topic_id"),
            'image',
            Db::raw("CONCAT('',jump_value) as jump_value"),
            'jump_type',
            'jump_code',
            Db::raw("IFNULL(jump_name,'') as jump_name"),
        ])
        ->get()
        ->toArray();
    }
}
